// ==UserScript==
// @name         哔哩哔哩AV号和BV号显示
// @namespace    https://gitee.com/LYF511511/OtherLanguages/blob/master/JavaScript/Script/BiliBiliAVandBV.js
// @version      0.1
// @description  哔哩哔哩AV号和BV号显示
// @author       LYF511
// @match        https://www.bilibili.com/video/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    window.onload = function(){setTimeout(function() {
        var div = document.getElementsByClassName('video-data')[0]
        var a1 = document.createElement("a")
        a1.innerHTML = "AV" + window.aid
        a1.href = "https://www.bilibili.com/video/av"+window.aid
        a1.style.color = "#999";
        a1.style.marginLeft = "16px";
        a1.target = "_bank"
        var a2 = document.createElement("a")
        a2.innerHTML = window.bvid
        a2.href = "https://www.bilibili.com/video/"+window.bvid
        a2.style.color = "#999";
        a2.style.marginLeft = "16px";
        a2.target = "_bank"
        div.appendChild(a1)
        div.appendChild(a2)
    }, 3000);}
})();